package com.example.nft.service;

import com.example.nft.entity.Tutu2;
import com.example.nft.entity.Tutu3;
import org.springframework.cache.annotation.CacheConfig;
import org.springframework.cache.annotation.CachePut;
import org.springframework.cache.annotation.Cacheable;

import java.text.ParseException;
import java.util.List;
@CacheConfig(cacheNames = "Tutu3Service")
public interface Tutu3Service {
    @CachePut(key = "#p0+#p1")
    List<Tutu3> selectAll(String fenqu, String name);

    @CachePut(key = "'all'")
    List<Tutu3> selectAll();

    @Cacheable
    String insert() throws ParseException;
}
